<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>编辑新闻</title>
	<link rel="stylesheet" media="screen" href="css/styles.css" >
    <style>
    .contact_form{padding-top:40px;}
	.title {background-color:rgba(0,0,0,0.56); text-align:center; width:100%; position:fixed; top:0; left:0; padding:5px 0;}
.title a {color:#FFF; text-decoration:none; font-size:16px; font-weight:bolder; line-height:24px;}
    </style>
</head>
<body>
<div align="center">
<table border="1" width="47%" height="250" style="border-width: 0px">
	<!-- MSTableType="layout" -->
	<tr>
		<td style="border-style: none; border-width: medium">　<form class="contact_form" action="update.php" method="post" name="contact_form">
    <ul>
    	<input type="hidden" name="id" value="<?php echo $new['id']; ?>" />
        <li>
             <h2>编辑新闻</h2>
             <span class="required_notification">* 表示必填项</span>
        </li>
        <li>
            <label for="name">标题:</label>
            <input type="text"  placeholder="请输入标题" required name='title' value="<?php echo $new['title']; ?>"/>
        </li>
        <li>
            <label for="email">电子邮件:</label>
            <input type="email" name="email" placeholder="请输入邮箱" required  value="<?php echo $new['email']; ?>"/>
            <span class="form_hint">正确格式为：sc@something.com</span>
        </li>
        <!--<li>
            <label for="website">发布人:</label>
            <input type="text" name="person" placeholder="发布人" required/>
        </li>-->
        <li>
            <label for="message">内容:</label>
            <textarea name="message" cols="40" rows="6" placeholder="请输入新闻内容" required ><?php echo $new['message']; ?>
            </textarea>
        </li>
        <li>
        	<button class="submit" type="submit">保存</button>
        </li>
    </ul>
</form></td>
	</tr>
</table>
</div>
</body>
</html>